package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsPublicJishibanMapper;
import com.hckjsec.cloud.domain.AppletsPublicJishiban;
import com.hckjsec.cloud.service.IAppletsPublicJishibanService;

/**
 * 冀时办Service业务层处理
 * 
 * @author cyt
 * @date 2021-09-23
 */
@Service
public class AppletsPublicJishibanServiceImpl implements IAppletsPublicJishibanService 
{
    @Autowired
    private AppletsPublicJishibanMapper appletsPublicJishibanMapper;

    /**
     * 查询冀时办
     * 
     * @param id 冀时办ID
     * @return 冀时办
     */
    @Override
    public AppletsPublicJishiban selectAppletsPublicJishibanById(Long id)
    {
        return appletsPublicJishibanMapper.selectAppletsPublicJishibanById(id);
    }

    /**
     * 查询冀时办列表
     * 
     * @param appletsPublicJishiban 冀时办
     * @return 冀时办
     */
    @Override
    public List<AppletsPublicJishiban> selectAppletsPublicJishibanList(AppletsPublicJishiban appletsPublicJishiban)
    {
        return appletsPublicJishibanMapper.selectAppletsPublicJishibanList(appletsPublicJishiban);
    }

    /**
     * 新增冀时办
     * 
     * @param appletsPublicJishiban 冀时办
     * @return 结果
     */
    @Override
    public int insertAppletsPublicJishiban(AppletsPublicJishiban appletsPublicJishiban)
    {
        return appletsPublicJishibanMapper.insertAppletsPublicJishiban(appletsPublicJishiban);
    }

    /**
     * 修改冀时办
     * 
     * @param appletsPublicJishiban 冀时办
     * @return 结果
     */
    @Override
    public int updateAppletsPublicJishiban(AppletsPublicJishiban appletsPublicJishiban)
    {
        return appletsPublicJishibanMapper.updateAppletsPublicJishiban(appletsPublicJishiban);
    }

    /**
     * 批量删除冀时办
     * 
     * @param ids 需要删除的冀时办ID
     * @return 结果
     */
    @Override
    public int deleteAppletsPublicJishibanByIds(Long[] ids)
    {
        return appletsPublicJishibanMapper.deleteAppletsPublicJishibanByIds(ids);
    }

    /**
     * 删除冀时办信息
     * 
     * @param id 冀时办ID
     * @return 结果
     */
    @Override
    public int deleteAppletsPublicJishibanById(Long id)
    {
        return appletsPublicJishibanMapper.deleteAppletsPublicJishibanById(id);
    }
}
